package com.hy.medicine.dingdan.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 订单创建请求VO
 */
@Data
@ApiModel(value = "订单创建请求")
public class OrderCreateVO {

    @ApiModelProperty("收货人姓名")
    @NotBlank(message = "收货人姓名不能为空")
    private String receiverName;

    @ApiModelProperty("收货人电话")
    @NotBlank(message = "收货人电话不能为空")
    private String receiverPhone;

    @ApiModelProperty("收货地址")
    @NotBlank(message = "收货地址不能为空")
    private String receiverAddress;

    @ApiModelProperty("支付方式: 1-微信, 2-支付宝, 3-银行卡")
    @NotNull(message = "支付方式不能为空")
    private Integer paymentType;

    @ApiModelProperty("订单备注")
    private String remark;

    @ApiModelProperty("购物车ID列表")
    @NotEmpty(message = "购物车项不能为空")
    private List<Long> cartItemIds;
}
